package tests;


import java.util.Random;
import models.WordStore;
import tools.DateHeader;
import tools.SeedRNGCommandLine;

/**
 * 
 * @author J Paul Gibson <br>
 * 
 * Typical Expected output:
<pre>
The seed used for the random number generator in the test is 0.
You can override this value by passing an integer value as a main argument parameter, if you so wish.


********************************************************************
Execution Date/Time 2011/11/07 16:17:12
********************************************************************
[]
[aaa, bbbb, cc, dddd]
Random Word = cc
Random Word = dddd
Random Word = aaa
Random Word = cc
Random Word = cc
Random Word = bbbb
Random Word = cc
Random Word = aaa
Random Word = cc
Random Word = dddd
 </pre>
 **/
public class WordStoreRandomTest {
	
public static void main(String[] args) {
		
		Random rng = SeedRNGCommandLine.getRandom(args);
		System.out.println(DateHeader.dateString());
		
		WordStore theWords = new WordStore(rng);
		
        System.out.println(theWords);
        
        theWords.addWord("aaa");
        theWords.addWord("bbbb");
        theWords.addWord("cc");
        theWords.addWord("aaa");
        theWords.addWord("dddd");
                     
        System.out.println(theWords);
        
        for (int i=0; i<10;i++)
        System.out.println("Random Word = "+theWords.randomWord());
	} 


}

